import { useState } from "react"
import Tabs from "../dComponent/tab"
let {TabPanel} = Tabs
function Ptabs(props){
    let [activeKey, setKey] = useState(1)
    return(
        <div className="page">
            <Tabs 
                activeKey={activeKey} 
                onChange={(key)=>{
                    console.log(key)
                    setKey(key)
                }}
            >
                <TabPanel align='center' justify='center' title="第一个" id={1}>第一个</TabPanel>
                <TabPanel align='center' justify='center' title="第二个" id={2}>第二个</TabPanel>
                <TabPanel align='center' justify='center' title="第三个" id={3}>第三个</TabPanel>
            </Tabs>
        </div>
    )
}
export default Ptabs  